// https://vuex.vuejs.org/zh-cn/intro.html
// make sure to call Vue.use(Vuex) if using a module system
import Vue from 'vue';
import Vuex from 'vuex';

import user from './modules//user';
import counter from './modules/counter';
import fetch from './modules/fetch';
import search from './modules/search';
import city from './modules/switchCity';
import home from './modules/home';
import category from './modules/category';
import schoolList from './modules/schoolList';
import teacherList from './modules/teacherList';
import courseList from './modules/courseList';
import teacherCourse from './modules/teacherCourse';
import discover from './modules/discover';
import history from './modules/history';
import myclass from './modules/myclass';
import followSchool from './modules/followSchool';
import followTeacher from './modules/followTeacher';

Vue.use(Vuex);

export default new Vuex.Store({
  modules: {
    user,
    counter,
    fetch,
    search,
    city,
    home,
    category,
    schoolList,
    teacherList,
    courseList,
    teacherCourse,
    discover,
    history,
    myclass,
    followSchool,
    followTeacher
  }
});
